/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.dao;

import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.viewer.entity.AirETickets;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电子票DAO接口
 * @author leopold
 * @version 2018-09-11
 */
@MyBatisDao
public interface AirETicketsDao {

    List<AirETickets> selectByUserId(Long id);

    void insert(AirETickets airETickets);

    List<AirETickets> selectByManyId(Long[] eTicketsId);

    void updateQrCodeId(@Param("airETickets") Long[] airETickets,@Param("qrCodeId") Long id);

    AirETickets selectBySelfETickets(AirETickets airETickets);

    List<AirETickets> selectAll(int pageNo);

    void UpdateExpiredETickets(List<Long> expiredETickets);

    List<AirETickets> selectMyAllETickets(Long id);

    List<Long> selectByQrcodeId(@Param("qrcodeId") Long qrcodeId);

    void batchUpdate(List<Long> airETicketIds);
}